import { AxiosPromise } from 'axios';
import { EventAssetsVo, EventAssetsQuery, EventManagerConfigsVo } from './types';
import request from '@/utils/request';

export const getIesAccountSearch = (query: EventAssetsQuery): AxiosPromise<EventAssetsVo[]> => {
  return request({
    url: '/oce/third/getIesAccountSearch',
    method: 'get',
    params: query
  });
};
export const createProjectPromotion = (data: EventManagerConfigsVo): AxiosPromise<any> => {
  return request({
    url: '/oce/third/createProjectPromotion',
    method: 'post',
    data
  });
};
export const getTitleList = (query: EventAssetsQuery): AxiosPromise<EventAssetsVo[]> => {
  return request({
    url: '/oce/title/list',
    method: 'get',
    params: query
  });
};
